package com.wyj.code.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * TODO:
 *
 * @author wuyijie
 * @date 2022/2/10 6:36 PM
 */
@ApiModel(value = "CodeDTO",description = "验证码服务参数")
public class CodeDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "验证码")
    private String code;
    @ApiModelProperty(value = "唯一标识")
    private String identification;
    @ApiModelProperty(value = "时间",hidden = true)
    private LocalDateTime deadline;


    public CodeDTO() {
    }

    public CodeDTO(String code, String identification, LocalDateTime deadline) {
        this.code = code;
        this.identification = identification;
        this.deadline = deadline;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getIdentification() {
        return identification;
    }

    public void setIdentification(String identification) {
        this.identification = identification;
    }

    public LocalDateTime getDeadline() {
        return deadline;
    }

    public void setDeadline(LocalDateTime deadline) {
        this.deadline = deadline;
    }

    @Override
    public String toString() {
        return "CodeDTO{" +
                "code='" + code + '\'' +
                ", identification='" + identification + '\'' +
                ", deadline=" + deadline +
                '}';
    }
}
